package com.demo.day522;

/**
 * @Auther: 86176
 * @Date: 2021/5/22 - 05 - 22 - 18:58
 * @version: 1.0
 */
public class Monkey {

    public static int EatPeach(int day) {
        if (day == 1) {
            return 1;
        } else {
            return (EatPeach(--day)+1)*2;
        }

    }

    public static void main(String[] args) {
        System.out.println(EatPeach(10));
    }
}
